package org.ligson.busdemo2;

import org.springframework.cloud.bus.event.RemoteApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class RemoteApplicationListener implements ApplicationListener<RemoteApplicationEvent> {
    @Override
    public void onApplicationEvent(RemoteApplicationEvent event) {
        System.out.println("process------" + event);
    }
}
